package com.xiguaji.tiktok.v1.ins.brand.model;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serializable;
/**
 * @author yzz
 * @Date 2021-03-29 10:08:46
 */
@Data
@Table(value="common_brand")
public class CommonBrand implements Serializable{

    /**
     *
     */
    @Id
    @Column(value="id")
    private java.lang.Integer id;

    /**
     *品牌名
     */
    @Column(value="brand_name")
    private java.lang.String brandName;

    /**
     *品牌英文名
     */
    @Column(value="en_name")
    private java.lang.String enName;

    /**
     *别名
     */
    @Column(value="alias")
    private java.lang.String alias;

    /**
     *
     */
    @Column(value="add_time")
    private java.lang.String addTime;

    /**
     *
     */
    @Column(value="update_time")
    private java.lang.String updateTime;

    /**
     *
     */
    @Column(value="class_tag")
    private java.lang.String classTag;

    /**
     *
     */
    @Column(value="checked")
    private java.lang.Boolean checked;

    /**
     *logo图片
     */
    @Column(value="logo")
    private java.lang.String logo;

    /**
     *
     */
    @Column(value="reviewed")
    private java.lang.Boolean reviewed;

    /**
     *
     */
    @Column(value="optional_segment")
    private java.lang.String optionalSegment;

    /**
     *
     */
    @Column(value="parent_id")
    private java.lang.Integer parentId;

    /**
     *分类
     */
    @Column(value="category_name")
    private java.lang.String categoryName;

    /**
     *创建时间
     */
    @Column(value="create_time")
    private java.lang.Long createTime;

    /**
     *最近更新分类时间
     */
    @Column(value="last_analysis_category_time")
    private java.lang.Long lastAnalysisCategoryTime;

    @Override
    public boolean equals(Object otherObject){
        if(this == otherObject){
            return true;
        }

        if(null == otherObject){
            return false;
        }

        if(getClass() != otherObject.getClass()){
            return false;
        }

        if(this.hashCode() == otherObject.hashCode()){
            return true;
        }

        return false;
    }

    @Override
    public int hashCode() {
        return this.getId().hashCode();
    }
}